using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MuaDeal
{
    public partial class MainKH : Form
    {
        public MainKH()
        {
            InitializeComponent();
        }
        private string tenkh = "";

        public string Tenkh
        {
            get { return tenkh; }
            set { tenkh = value; }
        }
        private void MainKH_Load(object sender, EventArgs e)
        {

        }

        private void btthoat_Click(object sender, EventArgs e)
        {
            this.Close();
            DangNhap frm = new DangNhap();
            this.Visible = false;
            frm.ShowDialog();
            this.Close();
        }

        private void rdbtndatmua_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtndatmua.Checked == true)
            {
                DatHang frm = new DatHang();
                frm.Tenkh = this.Tenkh;
                frm.ShowDialog(); rdbtndatmua.Checked = false;
            }
        }

        private void rdbtnxemctsp_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtnxemctsp.Checked == true)
            {
                XemChiTietSanPham frm = new XemChiTietSanPham();
                frm.ShowDialog(); rdbtnxemctsp.Checked = false;
            }
        }

        private void rdbtnxemdssp_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtnxemdssp.Checked == true)
            {
                XemDSSanPham frm = new XemDSSanPham();
                frm.ShowDialog(); rdbtnxemdssp.Checked = false;
            }
        }

        private void rdbtncapnhatspdatmua_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtncapnhatspdatmua.Checked == true)
            {
                CapNhatSPDatMua frm = new CapNhatSPDatMua();
                frm.ShowDialog(); rdbtncapnhatspdatmua.Checked = false;
            }
        }

        private void rdbtncapnhatttkh_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtncapnhatttkh.Checked == true)
            {
                CapNhatThongTinKhachHang frm = new CapNhatThongTinKhachHang();
                frm.Tenkh = this.Tenkh;
                frm.ShowDialog(); rdbtncapnhatttkh.Checked = false;
            }
        }




    }
}